<!-- #INCLUDE Virtual="/lib.asp" -->
<!-- #INCLUDE Virtual="/lib_gen.asp" -->

<%

page = request.querystring("thispage")
if page <> "" then page = cstr(cdbl(page))

if request("command") = "preview" then
	titel = request("titel")
else
	sql = "select * from vwcontent where id=" & page
	set rs = tmpConnection.execute(sql)
	titel = rs("titel")
end if

'params: start, end, before, during, after
startTime = request("start")
endTime = request("end")

currentTime = hour(now()) & ":" & minute(now())
if currentTime < startTime then
	rssInhoud = request("before")
elseif currentTime > endTime then
	rssInhoud = request("after")
else
	rssInhoud = request("during")
end if

rssInhoud = "<div class=""textfill"" style=""width: 100%; height: 70%; font-weight: bold; text-align: center""><span>" & server.htmlEncode(rssInhoud) & "</span></div>" & vbcrlf
rssInhoud = rssInhoud & "<script>" & vbcrlf & "$(function(){ $('.textfill').textfill({ maxFontPixels: 1024 }); });" & vbcrlf & "</script>"

call generatePage(request("preview"), request.querystring("nextpage"), titel, rssImage, rssInhoud)

%>